package br.com.sopracontrariar;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;

public class NomeEndereco2Activity extends Activity {
    /** Called when the activity is first created. */
    EditText editTextNome1;
    EditText editTextNome2;
    EditText editTextEndereco1;
    EditText editTextEndereco2;
	
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    }
    
    public void enviar(View view){
    	editTextNome1 = (EditText) findViewById(R.id.editText1);
    	editTextNome2 = (EditText) findViewById(R.id.editText3);
    	editTextEndereco1 = (EditText) findViewById(R.id.editText2);
    	editTextEndereco2 = (EditText) findViewById(R.id.editText4);
    	
    	editTextNome2.setText(editTextNome1.getText().toString());
    	editTextEndereco2.setText(editTextEndereco1.getText().toString());

    }
}